package com.probox.common.entity.service.wechat;

import com.probox.common.entity.domain.wechat.vo.AuthorizationInfoVo;

/**
 * 微信第三方平台授权
 */
public interface WechatPlatformService {

    public static final String token = "youruankeji-youxiao-shop";
    public static final String key = "Youruankeji88888youruankeji888youruankeji88";
    public static final String appId = "wx5519e9be9cb97060";
    public static final String appSecret = "24e19f69b4ef4fa823042500e90838ba";

    public String getApiComponentToken();

    public void setTicket(String t);

    public String getTicket();

    public void getApi_component_token();

    public void sendMessage(String openId,String query_auth_code);

    //获取/刷新接口调用令牌
    public AuthorizationInfoVo getApi_authorizer_token(String component_access_token, String authorizer_appid, String authorizer_refresh_token);

    //获取第三方的预授权码
    public String getApiCreatePreauthcode();

    //根据授权码获取授权方的访问token
    public String getApi_query_auth(String authorization_code,String expires_in,String platformid,String authorizationType,String authorizationStatus,String allworkAppid,String bindRefreshToken);

    //根据授权方的appId查找授权码
    public String getAuthorizationInfoAccessToken(String authorizerAppid);
}
